package com.mode;

import java.util.HashMap;

import base.PageList;
import base.Power;

public class Public {
	public HashMap<String, Object> getListForNewHouse(Power power) {
		HashMap<String, Object> map = new HashMap<String, Object>();
		String sql = "select * from value";
		try {
			PageList PL1 = new PageList();
			PL1.setOnePage(5);
			PL1.setEndForm(true);
			PL1.setDefaultOrder("id");

			map.put("list", PL1.getList(power, sql));
			map.put("PL", PL1.getContent());
			map.put("PLend", PL1.getEndButtonString());
		} catch (Exception e) {
			e.printStackTrace();
		}

		return map;
	}
}
